package com.ruoyi.activiti.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.ruoyi.activiti.common.Result;
import com.ruoyi.activiti.common.ResultObject;
import com.ruoyi.activiti.domain.ActRuTask;
import com.ruoyi.activiti.mapper.AuditMapper;
import com.ruoyi.activiti.service.AuditService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class AuditServiceImpl implements AuditService {
    @Autowired
    AuditMapper auditMapper;


    @Override
    public ResultObject auditList(ActRuTask actRuTask) {
        QueryWrapper<ActRuTask> queryWrapper = new QueryWrapper<>();
        List<ActRuTask> sections = auditMapper.selectList(queryWrapper);
        return new ResultObject(true,"1","成功",sections);
    }
}
